home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1996 #6 / Amiga Plus CD - 1996 - No. 06.iso / pd / texte / texfontinst / contrib / helminck / timesmt.sty < prev    next >
Text File  |  1996-07-30  |  4KB  |  110 lines

  1. %%% This is file `timesmt.sty', version <1.0c> 
  2. %%% 
  3. %%% Copyright (C) 1994 Aloysius G. Helminck. All rights reserved. 
  4. %%% Permission is granted to to customize the declarations in this 
  5. %%% file to serve the needs of your installation. However, no permission
  6. %%% is granted to distribute a modified version of this file under 
  7. %%% its original name. 
  8. %%%
  9. %%% This style file redefines the math symbols to: zmtmr, zmtmi, zmtsy
  10. %%% and mtex. These fonts essentially are a combination of Times and
  11. %%% Mathtime fonts and are remapped to get fonts with the same
  12. %%% character tables as the cm-math fonts. 
  13. %%%  
  14.  
  15. \NeedsTeXFormat{LaTeX2e}
  16. \ProvidesPackage{timesmt}[1994/04/29 Times + Mathtime math fonts]
  17.  
  18. % The default family is Times Roman
  19.  
  20. \renewcommand{\rmdefault}{ptm}
  21. \def\bfdefault{b}
  22.  
  23. % The math fonts are the zmtm fonts.
  24.  
  25. \DeclareSymbolFont{operators}   {OT1}{zmtt}{m}{n}
  26. \DeclareSymbolFont{letters}     {OML}{zmtt}{m}{it}
  27. \DeclareSymbolFont{symbols}     {OMS}{zmtt}{m}{n}
  28. \DeclareSymbolFont{largesymbols}{OMX}{mtt}{m}{n}
  29. %\DeclareSymbolFont{bold}        {OT1}{ptm}{\bfdefault}{n}
  30. %\DeclareSymbolFont{italic}      {OT1}{ptm}{m}{it}
  31. \SetMathAlphabet{\mathbf}{normal}{\encodingdefault}{\rmdefault}{\bfdefault}{n}%
  32. \SetMathAlphabet{\mathsf}{normal}{\encodingdefault}{\sfdefault}{m}{n}%
  33. \SetMathAlphabet{\mathrm}{normal}{\encodingdefault}{\rmdefault}{m}{n}%
  34.  
  35. % Bold math from the CM fonts.
  36. %
  37. %\SetSymbolFont{operators}{bold}{OT1}{crm}{bx}{n}
  38. %\SetSymbolFont{letters}{bold}{OML}{cmm}{b}{it}
  39. %\SetSymbolFont{symbols}{bold}{OMS}{cmsy}{b}{n}
  40. %\SetSymbolFont{largesymbols}{bold}{OMX}{mtt}{m}{n}
  41. %\SetMathAlphabet{\mathbf}{bold}{\encodingdefault}{\rmdefault}{m}{n}%
  42. %\SetMathAlphabet{\mathsf}{bold}{\encodingdefault}{\sfdefault}{b}{n}%
  43. %\SetMathAlphabet{\mathrm}{bold}{\encodingdefault}{\rmdefault}{b}{n}%
  44. %
  45.  
  46. % Or bold math from Times
  47. \SetSymbolFont{operators}{bold}{OT1}{zmtt}{b}{n}
  48. \SetSymbolFont{letters}{bold}{OML}{zmtt}{b}{it}
  49. \SetSymbolFont{symbols}{bold}{OMS}{zmtt}{b}{n}
  50. \SetSymbolFont{largesymbols}{bold}{OMX}{mtt}{m}{n}
  51. \SetMathAlphabet{\mathbf}{bold}{\encodingdefault}{\rmdefault}{m}{n}%
  52. \SetMathAlphabet{\mathsf}{bold}{\encodingdefault}{\sfdefault}{b}{n}%
  53. \SetMathAlphabet{\mathrm}{bold}{\encodingdefault}{\rmdefault}{b}{n}%
  54.  
  55.  
  56. % An \omicron command, to fill the gap.
  57.  
  58. \DeclareMathSymbol{\omicron}{0}{operators}{`\o}
  59.  
  60. % Two extra symbols from the mathtime family:
  61.  
  62. \DeclareMathSymbol{\varkappa}{0}{letters}{"80}
  63. \DeclareMathSymbol{\comp}{2}{letters}{"81}
  64.  
  65. \def\hbar{{\mathchar'26\mkern-6.7muh}}
  66. \def\angle{{\vbox{\ialign{$\m@th\scriptstyle##$\crcr
  67.      \not\mathrel{\mkern14mu}\crcr
  68.      \noalign{\nointerlineskip}
  69.      \mkern2.5mu\leaders\hrule height.34pt\hfill\mkern2.5mu\crcr}}}}
  70.  
  71. % Reduce the space around math operators
  72.  
  73. \thinmuskip=2.5mu
  74. \medmuskip=3.5mu plus 1mu minus 1mu
  75. \thickmuskip=4.5mu plus 1.5mu minus 1mu
  76.  
  77. % If you do not want boldmath from, then uncomment the
  78. % following. 
  79.  
  80. % \def\boldmath{%
  81. %    \@warning{there is no bold Symbol font}%
  82. %    \global\let\boldmath=\relax
  83. % }
  84.  
  85. %%
  86. %%  \matrix can be defined similar as for AMSLaTeX:
  87. %%
  88. %
  89. %\newcount\c@MaxMatrixCols
  90. %\c@MaxMatrixCols=10
  91. %\def\matrix{\hskip -\arraycolsep\array{*\c@MaxMatrixCols c}}
  92. %\def\endmatrix{\endarray \hskip -\arraycolsep}
  93. %
  94.  
  95. %%
  96. %% If you use Textures fonts for your Roman family, then you need to
  97. %% redefine the \AA macro for Plain and LaTeX. The macro depend on the
  98. %% size of the box for the CM ring character to be much wider than
  99. %% just the width of the ring. The times-roman (or other postcript)
  100. %% character is quite small and will offset the ring far to the left. 
  101. %% We adjust the size of the box for the ring to be placed in so that
  102. %% it works "reasonably well" for roman, italic, and bold
  103. %% versions. Uncomment the next two lines if you need this correction. 
  104. %\def\AA{\leavevmode\setbox0\hbox{A}\dimen@\ht0\advance\dimen@-0.85ex%
  105. %  \rlap{\raise.67\dimen@\hbox to \wd0{\hss\char'27\hss}}A}
  106.  
  107. \endinput
  108.  
  109.  
  110.